package com.secf.service.action.hpy.hys.ListDir;

import java.util.Arrays;

/**
 * @Author ms
 * @Date 2024-07-31 11:26
 */
public class Test8 {
    public static void main(String[] args) {
        int[] originalArray = {1, 2, 3};
        int[] clonedArray = originalArray.clone();

        // 修改克隆数组的第一个元素
        clonedArray[0] = 100;
        System.out.println("原始数组: " + Arrays.toString(originalArray));
        System.out.println("克隆数组: " + Arrays.toString(clonedArray));
    }
}